Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[entsoe] Refactor HTTP error handling #17616

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jlaur
Copy link
Contributor

@jlaur jlaur commented Oct 22, 2024

The primary objective of this pull request is to improve handling of HTTP error code 401 ("Unauthorized") by eliminating exception message string comparison - see #17416 (comment).

Additionally, we will now provide "openHAB" with version number in the User-Agent header. This will make it possible to reach out to us in case of any issues.

And last, but not least, InterruptedException will no longer be swallowed by HttpUtil and rethrown as IOException. This allows us rethrow InterruptedException all the way up the call chain. This will ensure that the thread interruption request is respected immediately, rather than masking the exception by catching it prematurely.

Signed-off-by: Jacob Laursen <[email protected]>
@jlaur
Copy link
Contributor Author

jlaur commented Oct 22, 2024

@kaikreuzer - can you add @jmelhus to the contributor team, so he will be added as reviewer for ENTSO-E pull requests? He is our new binding maintainer. 🙂

@kaikreuzer
Copy link
Member

Sure thing - done! Welcome @jmelhus 😄

@jlaur
Copy link
Contributor Author

jlaur commented Oct 23, 2024

Sure thing - done! Welcome @jmelhus 😄

Hmm, does it usually take time to come into effect, because I still don't see him here and still can't request review?

@kaikreuzer
Copy link
Member

He is invited and needs to accept the invitation before you can see him there.

@jlaur
Copy link
Contributor Author

jlaur commented Oct 23, 2024

He is invited and needs to accept the invitation before you can see him there.

Ah, thanks!

@jlaur jlaur requested a review from jmelhus October 23, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants